<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<tr id="row_id_${e.key}">
  <td>
    <a href="done?key=${e.key}&done=t">done</a>
  </td>
  <td>
    <fmt:formatDate value="${e.dueDate}" pattern="yyyy/MM/dd" />
  </td>
  <td>${f:h(e.category.name)}</td>
  <td>${f:h(e.content)}</td>
  <c:set var="editUrl" value="edit?key=${e.key}"/>
  <c:set var="deleteUrl" value="delete?key=${e.key}"/>
  <td><a href="#" onclick="return Todo.search('${e.key}');">Edit</a></td>
  <td><a href="${f:url(deleteUrl)}" onclick="return confirm('delete OK?')">Delete</a></td>
</tr>